package com.example.iotmanagerment26.service;

import com.example.iotmanagerment26.domain.Device;
import com.example.iotmanagerment26.domain.DeviceLocation;
import com.example.iotmanagerment26.domain.DeviceWithLocation;

import java.util.List;

public interface DeviceService {
    Device selectDeviceById(int id);

    List<DeviceWithLocation> selectAllDevice();
    List<DeviceLocation> selectAllDeviceLocation();

    int insertDevice(Device device);

    int deleteDeviceById(int id);

    int updateInfoById(Device device);

    Device selectDeviceByName(String name);
}
